package com.alks.pad.controller.stitchAccount;


import com.alks.common.aop.WebLogger;
import com.alks.entity.data.response.ResponseInfo;
import com.alks.pad.data.request.stitchAccount.PcStitchProdDetailRequest1;
import com.alks.pad.data.request.stitchAccount.ProducedValueRequest;
import com.alks.pad.service.stitchAccount.StitchService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Slf4j
@RestController
@RequestMapping("/pad/stitchProducedValue")
@Api(value = "针车件资App", tags = {"针车件资App-针车产值查询"})
public class StitchProducedValueController {

    @Autowired
    private StitchService StitchInventoryService;
    @WebLogger
    @PostMapping("/getProducedValue")
    @ApiOperation(value = "针车产值查询查询（前端默认传当月2024-11）:当月所有缴库日期每个人的总工资",tags = "针车件资App-针车产值查询")
    public ResponseInfo getProducedValue(@RequestBody ProducedValueRequest request){
        return StitchInventoryService.getProducedValue(request);
    }

    @WebLogger
    @PostMapping("/getEmployeeDailySalary")
    @ApiOperation(value = "员工在当前月不同日的缴库日期的工资",tags = "针车件资App-针车产值查询")
    public ResponseInfo getEmployeeDailySalary(@RequestBody ProducedValueRequest request){
        return StitchInventoryService.getEmployeeDailySalary(request);
    }

    @WebLogger
    @PostMapping("/getEmployeeDailyProcessSalary")
    @ApiOperation(value = "查询员工当日指令工序工资",tags = "针车件资App-针车产值查询")
    public ResponseInfo getEmployeeDailyProcessSalary(@RequestBody ProducedValueRequest request){
        return StitchInventoryService.getEmployeeDailyProcessSalary(request);
    }

    //@PostMapping("/getYieldDetails")
    //@ApiOperation(value = "查询员工产量明细",tags = "针车件资App-针车产值查询")
    //public ResponseInfo getYieldDetails(@RequestBody PcStitchProdDetailRequest1 request) {
    //    return StitchInventoryService.getYieldDetails(request);
    //}
}
